//*****************************************************************************
//
//	.COM Framework 1.7
//
//	Copyright (C) 2006-2009 Softg Studio All Rights Reserved.
//	
//	Website: http://www.SoftG.net
//
//	author: xu song seng
//
//*****************************************************************************

#include "stdafx.h"
#include "AboutCOMFrame.h"
#include <atlstr.h>

// CAboutCOMFrame
CAboutCOMFrame::CAboutCOMFrame()
{

}

CAboutCOMFrame::~CAboutCOMFrame()
{
}

LRESULT CAboutCOMFrame::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	DoDataExchange();
	CAtlString strInfo=L"\
	.COM Framework 1.7 r\n\r\n\
	http://www.softg.net\r\n\r\n";
	m_wndEditInfo.SetWindowText(strInfo);

	return 1;  // Let the system set the focus
}


LRESULT CAboutCOMFrame::OnClickedOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
	DoDataExchange(TRUE);
	EndDialog(wID);
	return 0;
}


LRESULT CAboutCOMFrame::OnClickedCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
	EndDialog(wID);
	return 0;
}
